﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneMake.Model
{
    //聚划算销售概况
    public class report_jhs_sale
    {
        [MapToField(FieldName = "日期")]
        public DateTime stat_datetime { get; set; }

        [MapToField(FieldName = "旺旺昵称")]
        public string ww { get; set; }

        [MapToField(FieldName = "接待人数")]
        public int n_serve { get; set; }
    }

    partial class ReportHelper
    {
        public report_jhs_sale get_report_jhs_sale(int shopid, DateTime day)
        {
            return null;
        }
        public List<report_jhs_sale> get_report_jhs_sales(int shopid, DateTime beginTime, DateTime endTime)
        {
            System.Diagnostics.Debug.Assert(beginTime <= endTime);

            List<report_jhs_sale> reports = new List<report_jhs_sale>();
            DateTime tempTime = beginTime;
            do
            {
                report_jhs_sale report = get_report_jhs_sale(shopid, tempTime);
                if (report != null)
                    reports.Add(report);
                tempTime = tempTime.AddDays(1);
            }
            while (tempTime <= endTime);

            return reports;
        }
    }
}
